const Storage = {
  get: (keys) => {
    return new Promise((resolve => {
      chrome.storage.local.get(keys, (result) => {
        resolve(result)
      })
    }))
  },

  save: (params) => {
    return new Promise((resolve => {
      chrome.storage.local.set(params, (result = {}) => {
        resolve(result)
      })
    }))
  }
}

export default Storage